Page({
  data: {
    list: [1, 1, 1, 1, 1],
    // 系统设置
    setData: [
      {
        id: 1,
        icon1: '/assets/icons/set1.png',
        icon2: '/assets/icons/right.png',
        text: '考试记录',
      },
      {
        id: 2,
        icon1: '/assets/icons/set2.png',
        icon2: '/assets/icons/right.png',
        text: '留言反馈',
      },
      {
        id: 3,
        icon1: '/assets/icons/set3.png',
        icon2: '/assets/icons/right.png',
        text: '系统设置',
      },
    ],
  },
  onLoad(options) {},
  // 跳转个人信息页面
  _toLink(e) {
    const url = e.currentTarget.dataset.url
    if (url == 2) {
      // 系统设置
      wx.navigateTo({
        url: '/pages/feedback/feedback',
      })
    } else if (url == 1) {
      // 考试记录
      wx.navigateTo({
        url: '/pages/recording/recording',
      })
    } else if (url == 3) {
      // 考试记录
      wx.navigateTo({
        url: '/pages/set/set',
      })
    }
  },
  // 跳转到item页面
  _toItem() {
    wx.navigateTo({
      url: '/pages/item/item',
    })
  },
  //跳转到我的收藏页面
  _toCollect() {
    wx.navigateTo({
      url: '/pages/collection/collection',
    })
  },
  // 我的毕业证书
  _toDiploma() {
    wx.navigateTo({
      url: '/pages/mydiploma/mydiploma',
    })
  },
  // 消息、
  _toNews() {
    wx.navigateTo({
      url: '/pages/news/news',
    })
  },
})
